package serviceset2

import org.springframework.cloud.client.loadbalancer.LoadBalanced
import org.springframework.context.annotation.Bean
import org.springframework.web.client.RestTemplate
import serviceset2.feign.ServiceSet3Hystrix
import serviceset2.restTemplate.ServiceSet3Proxy

class AnnotationContextConfiguration {
    @Bean
    @LoadBalanced
    RestTemplate restTemplate() {
        return new RestTemplate()
    }

    @Bean
    ServiceSet3Hystrix serviceSet3Hystrix() {
        return new ServiceSet3Hystrix()
    }

    @Bean
    ServiceSet3Proxy serviceSet3Proxy() {
        return new ServiceSet3Proxy()
    }
}
